package com.starlink.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.starlink.model.domain.BookReadingRecordDO;
import com.starlink.model.request.BookReadingRecordRequest;
import com.starlink.model.vo.BookReadingRecordVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhanghong
 */
@Repository
public interface BookReadingRecordMapper extends BaseMapper<BookReadingRecordDO> {
    BookReadingRecordDO selectDOById(Long id);
    List<BookReadingRecordDO> selectDOList(BookReadingRecordDO bookReadingRecord);
    int insertDO(BookReadingRecordDO bookReadingRecord);
    int batchInsertDO(List<BookReadingRecordDO> bookReadingRecordDOList);
    int updateDO(BookReadingRecordDO bookReadingRecord);
    int deleteDOById(Long id);
    int deleteDOByIds(String[] ids);

    List<BookReadingRecordVO> pageQuery(@Param("userId") Long userId);
}
